﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace YiDingCanWp7
{
    public partial class LoginPage : PhoneApplicationPage
    {
        public LoginPage()
        {
            InitializeComponent();
        }

        private void button_Submit_Click(object sender, RoutedEventArgs e)
        {
            BaseConfig.IsLogined = true;
            NavigationService.Navigate(new Uri("/PersonnelPage.xaml", UriKind.RelativeOrAbsolute));
        }

        private void hyperlinkButton2_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask task = new WebBrowserTask();
            task.URL = Uri.EscapeDataString("http://m.yidingcan.com/Account/Register");
            task.Show();
        }

        private void textBox_Password_TextChanged(object sender, TextChangedEventArgs e)
        {

        }
    }
}